//
//  Item.h
//  MyFunctionDemo
//
//  Created by Ting Han on 2017/9/21.
//  Copyright © 2017年 Ting Han. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Item : NSObject

@property (nonatomic,copy) NSString *name;
@property (nonatomic) id data;

+ (instancetype)itemWithName:(NSString *) name data:(id)data;

@property (nonatomic,assign) NSInteger index;
@property (nonatomic,strong,readonly) NSMutableAttributedString *attrName;

- (void)createAttributedString;

@end
